package org.shushan.cloud.transaction.sample.rocketmq;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author zhigang.li
 * @date 2022/9/6
 * @email 2429967859@qq.com
 */
@Component
@RocketMQMessageListener(topic = "testmq",consumerGroup = "test")
public class RocketMqListener implements RocketMQListener {

    //测试mq的消息订阅
    @Override
    public void onMessage(Object o) {
        System.out.println(o);
    }
}
